<template>
   <div style="text-align: center;">
      <h2></h2>
      <el-image
            style="width: 180px; height: 180px"
            src="https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg"
      ></el-image>
      <p>
         首页
         {{  userInfo.city }}
      </p>
   </div>
</template>

<script setup lang="ts">
import { useUserStore } from '@/store/user';
import { storeToRefs } from "pinia";
const useUser = useUserStore()
const { token, userInfo } = storeToRefs(useUser);
console.log('ggg',userInfo)
</script>